Lesson 0010 · ~12 min

Logits, softmax, and sampling

Core idea: The model produces logits, softmax turns them into probabilities, and decoding picks the next token.

What to remember

Why it matters

This is where output style, determinism, and variety come from.

Mental model

Representation → logits → probabilities → decoding choice → next token.

Checkpoint

  1. What is a logit?
  2. What does softmax do?
  3. Why can the same prompt produce different outputs?